using System.Threading.Tasks;
using System.Collections.Generic;

namespace rpc {

internal class RoleImpl : Role {
    Rpcdata.Role value_;
    private PositionImpl inter_pos = new PositionImpl();
    public RoleImpl() {
        value_ = new Rpcdata.Role();
    }
    internal RoleImpl(Rpcdata.Role v) {
        value_ = v;
        inter_pos.PBObject = value_.Pos;
    }
    internal Rpcdata.Role PBObject {
        get {
            value_.Pos = inter_pos.PBObject;
            return value_;
        }
        set {
            value_ = value;
            inter_pos.PBObject = value_.Pos;
        }
    }
    public override ulong RoleUid { get { return value_.RoleUid; } set { value_.RoleUid = value; } }
    public override int SceneId { get { return value_.SceneId; } set { value_.SceneId = value; } }
    public override Position Pos{ get { return inter_pos; } }
}

}

